package com.java.datastructures;

/**
 * @author wangning
 * @create 2021-05-20 21:29
 */
public class TestMyStack {
	public static void main(String[] args) {

		MyStack myStack = new MyStack();
//		myStack.pop();
		myStack.push(1);
		myStack.push(2);
		myStack.push(3);
		int pop1 = myStack.pop();
		System.out.println("pop1 = " + pop1);
		System.out.println(myStack.peek());
		int pop2 = myStack.pop();
		System.out.println("pop2 = " + pop2);
		int pop3 = myStack.pop();
		System.out.println("pop3 = " + pop3);

	}
}
